package com.wgts.wgts.dagger.module;


import com.wgts.wgts.dagger.scope.FragmentScope;
import com.wgts.wgts.mvp.model.IMoreMoreGoodInfoActivityModel;
import com.wgts.wgts.mvp.model.IMoreMoreGoodInfoFragmentModel;
import com.wgts.wgts.mvp.model.imp.MoreMoreGoodInfoActivityModel;
import com.wgts.wgts.mvp.model.imp.MoreMoreGoodInfoFragmentModel;
import com.wgts.wgts.mvp.presenter.IMoreMoreGoodInfoFragmentPresenter;
import com.wgts.wgts.mvp.presenter.imp.MoreMoreGoodInfoFragmentPresenter;
import com.wgts.wgts.mvp.view.IMoreMoreGoodInfoFragmentView;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.tools.CountDownTime;

import dagger.Module;
import dagger.Provides;

@Module
public class MoreMoreGoodInfoFragmentModule {

    private IMoreMoreGoodInfoFragmentView view;

    public MoreMoreGoodInfoFragmentModule(IMoreMoreGoodInfoFragmentView view) {
        this.view = view;
    }

    @Provides
    @FragmentScope
    public IMoreMoreGoodInfoFragmentView provideView(){
        return view;
    }

    @Provides
    @FragmentScope
    public IMoreMoreGoodInfoFragmentModel provideModel(NetService netService){
        return new MoreMoreGoodInfoFragmentModel(netService);
    }

    @Provides
    @FragmentScope
    public IMoreMoreGoodInfoFragmentPresenter providePresenter(IMoreMoreGoodInfoFragmentView view, IMoreMoreGoodInfoFragmentModel model, CountDownTime countDownTime){
        return new MoreMoreGoodInfoFragmentPresenter(model, view, countDownTime);
    }
}
